
export default function(inst){
  // 必填项
  inst.add("required",{ required: true, message: "必填项", trigger: "blur" })
  // 邮箱
  inst.add("email",{ pattern: /^[a-z0-9]+([._\\-]*[a-z0-9])*@([a-z0-9]+[-a-z0-9]*[a-z0-9]+.){1,63}[a-z0-9]+$/, message: "邮箱格式错误", trigger: 'blur' })
  // 数字
  inst.add("number",{ pattern: /^\d*(\.\d*)?$/, message: "数字格式错误", trigger: 'blur' })

}
